package com.showde.shoppingmall.activity;

import android.app.ActivityGroup;
import android.view.KeyEvent;
import android.view.View;

@SuppressWarnings("deprecation")
public abstract class BaseGroupActivity extends ActivityGroup {
	// protected static ActivityGroup group;
	// protected static ArrayList<View> history;

	public static final int msg_refreshView = 0x11111;

	public abstract void replaceView(View v);

	public abstract void back();

	public boolean onKeyDown(int keyCode, KeyEvent event) {
		if (keyCode == KeyEvent.KEYCODE_BACK) {
			back();
			return true;
		} else {
			return super.onKeyDown(keyCode, event);
		}
	}

}
